/**
 * @author Justin Akin
 * @version Action Pals Core Library 0.1.0
 */
package com.actionpals.events
{
	
	import com.actionpals.base.BaseEvent;

	public class KeyScrollEvent extends BaseEvent
	{
		
	//--------------------------------------------------------------------------------
	//
	//	Public Static Constants
	//
	//--------------------------------------------------------------------------------
	
		public static const ARROW_UP:String = "arrowUp";
		public static const ARROW_DOWN:String = "arrowDown";
		public static const ARROW_LEFT:String = "arrowLeft";
		public static const ARROW_RIGHT:String = "arrowRight";
		
		public static const PAGE_UP:String = "pageUp";
		public static const PAGE_DOWN:String = "pageDown";
		
		public static const HOME:String = "home";
		public static const END:String = "end";
		
	//--------------------------------------------------------------------------------
	//
	//	Protected Member Variables
	//
	//--------------------------------------------------------------------------------
	
		protected var _keyDown:Boolean;
		
	//--------------------------------------------------------------------------------
	//
	//	Constructor
	//
	//--------------------------------------------------------------------------------
		
		/**
		 * Constructor.
		 */
		public function KeyScrollEvent( type:String, bubbles:Boolean = false, cancelable:Boolean = false, keyDown:Boolean = false )
		{
			super( type, bubbles, cancelable );
			_keyDown = keyDown;
		}
		
	//--------------------------------------------------------------------------------
	//
	//	Getters and Setters
	//
	//--------------------------------------------------------------------------------
	
		public function get keyDown():Boolean
		{
			return _keyDown;
		}
		
	}
	
}